﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace ProjectWizardManagement.Entity.Model
{
    public class RepositoryProject
    {
        public RepositoryProject()
        {
            GlobalEvents = new HashSet<CalendarEvent>();
            AllowedUsers = new HashSet<User>();
            PreviousVersions = new HashSet<ProjectVersion>();
        }

        [Key]
        public int Id { get; set; }

        public string Name { get; set; }

        public string Description { get; set; }

        [Display(Name = "Current Version")]
        public ProjectVersion CurrentVersion { get; set; }

        public virtual ICollection<User> AllowedUsers { get; set; } 

        public virtual ICollection<CalendarEvent> GlobalEvents { get; set; }

        public virtual ICollection<ProjectVersion> PreviousVersions { get; set; } 
    }
}
